home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 128 26
/
q26.d81
/
t.quicktext 1995
< prev
next >
Wrap
Text File
|
2022-08-28
|
2KB
|
43 lines
Q U I C K T E X T 1 9 9 5
Text by Fender Tucker
On LS 128 #24 I described the problems I was having with QUICKTEXT, an
ML routine that allows a program to BLOAD text into BANK 1, where it's
quickly turned into a string array. There's not enough room on the disk to
repeat the details of QUICKTEXT here, but here is the code to use:
50 dima$(200) :rem as many lines of text as you need
60 bload"coquicktext",u(dv),b1,p4864
70 bload"petascii text file",u(dv),b1,p5376
80 w=pointer(a$(0)):bank1:sys4864,w-256*int(w/256),int(w/256):bank15
The complete text will miraculously be found in the array a$(x).
The problem was that it could only be called 40 times before
encountering memory errors. Tomas Gustafsson of Hjaltevad Sweden wrote me
a scholarly letter explaining how he had solved the problem by clearing the
array and causing a garbage collection each time the routine is called. I
wish I had room to print his letter here. He also sent me a disk with the
fixed QUICKTEXT object file on it. It can be called as many times as you
want in a program, now.
Use "coquicktext" or "messier.qt" on this disk if you have a program
that could benefit from fast transference from disk PETASCII text file to
subscripted strings. Thanks, Tomas!
NOTE: The program "quicktext.80" and its ML routine "qt80.o" used by Copy
It were made specifically for reading text after copying. They are NOT the
ones to use in your program. Use "coquicktext" or "messier.qt".
FT
\\\\\ RETURN - Menu \\\\\